function [bellows_volt, ecg_volt,scan_rate, time, directions,scan_times,scan_times_zerod]= read_sync_data_toolbox(patient); 

    %|------------------------------------------------------------------------|
    %|  Reads all *25 bellows voltages and ECG voltages from saved .mat files
    %|  
    %------------------------------------------------------------------------
    %|      Dependancies;                                                     |
    %|                                 |
    %------------------------------------------------------------------------
    %   This file is part of the
    %   5D-Novel4DCT Toolbox  ("Novel4DCT-Toolbox")
    %   DH Thomas, Ph.D
    %   University of California, Los Angeles
    %   Contact: mailto:dhthomas@mednet.ucla.edu
    %------------------------------------------------------------------------
    % $Author: DHThomas $	$Date: 2014/04/01 10:23:59 $	$Revision: 0.1 $

    display(sprintf('Loading %d scan`s bellows data...',patient.scans))
    for f=1:max([patient.ref patient.scans]);
%         sprintf('Loading Sync; scan = %d',f)
        load([patient.folder_static sprintf('/image_scan_%d',f)]);
        bellows_volt(1:length(bvp),f)=bvp;
        directions_tmp(f)=double(direction);
        ecg_volt(1:length(ecgvp),f)=ecgvp;
        scan_times_tmp(1:length(scan_time),f)=scan_time;
        
    end
    directions = directions_tmp;
    %     scan_times=scan_times_tmp;
    scan_rate=abs((scan_time(end)-scan_time(1))/length(scan_time));
    time=(0:length(bellows_volt)-1)*scan_rate;
    
    
    
    
    for scan=1:max([patient.ref patient.scans]);
        if directions(scan)<1;
            scan_times(1:patient.dim(3),scan)=flipdim(scan_times_tmp(1:patient.dim(3),scan),1);
        else
            scan_times(1:patient.dim(3),scan)=scan_times_tmp(1:patient.dim(3),scan);
        end
    end
    scan_times_zerod=scan_times-scan_times(1,1);
    
